package org.wang.generalcode.modules.exam.service.impl;

import org.wang.generalcode.support.base.BaseServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.wang.generalcode.modules.exam.mapper.TestPaperQuestionInfoMapper;
import org.wang.generalcode.modules.exam.pojo.entity.TestPaperQuestionInfoEntity;
import org.wang.generalcode.modules.exam.pojo.param.TestPaperQuestionInfoParams;
import org.wang.generalcode.modules.exam.service.TestPaperQuestionInfoService;
import org.wang.generalcode.modules.exam.pojo.vo.TestPaperQuestionInfoVO;
import org.wang.generalcode.modules.exam.converter.TestPaperQuestionInfoConverter;

/**
 * 试卷试题关联表服务实现类
 *
 * @author wz
 * @since 2024-11-29
 */
@Service
@RequiredArgsConstructor
public class TestPaperQuestionInfoServiceImpl extends BaseServiceImpl<TestPaperQuestionInfoMapper, TestPaperQuestionInfoEntity> implements TestPaperQuestionInfoService {

    private final TestPaperQuestionInfoConverter testpaperquestioninfoConverter;

    /**
     * 获取试卷试题关联表分页列表
     *
     * @param queryParams 查询参数
     * @return {@link IPage<TestPaperQuestionInfoVO>} 试卷试题关联表分页列表
     */
    @Override
    public IPage<TestPaperQuestionInfoVO> getTestPaperQuestionInfoPage(IPage<TestPaperQuestionInfoVO> page, TestPaperQuestionInfoParams queryParams) {
        return page.setRecords(baseMapper.getTestPaperQuestionInfoPage(page, queryParams));
    }
}
